﻿@model EagleProject.Models.UserPasswordChangeModel

@{
    ViewBag.Title = "Change Password";
}

<h2>Change Password</h2>

@using (Html.BeginForm("ChangePassword", "User", FormMethod.Post))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Change password</legend>
        <ol>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.Password)</div>
                <div class="tbl-next">@Html.PasswordFor(m => m.Password)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.Password)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.NewPassword)</div>
                <div class="tbl-next">@Html.PasswordFor(m => m.NewPassword)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.NewPassword)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.NewPasswordRetype)</div>
                <div class="tbl-next">@Html.PasswordFor(m => m.NewPasswordRetype)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.NewPasswordRetype)</div>
                <div class="clear"></div>
            </li>
        </ol>
    </fieldset>
    <input type="submit" class="btn" name="Submit" id="Submit" value="Submit" />
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

<script src="@Url.Content("~/Scripts/jquery-1.7.1.js")"></script>
